﻿<%@ Page Language="C#" MasterPageFile="~/Admin/MasterPage/PageTemplate.Master" AutoEventWireup="True"
    Codebehind="Default.aspx.cs" Inherits="BingZi.HY.UI.Center.Manager.app_CompanyUI.Default"
    Title="无标题页" %>

<asp:Content ID="Content1" ContentPlaceHolderID="PageBody" runat="server">
    <BingZiControls:HeadMenuWebControls ID="HeadMenuWebControls1" runat="server"
         HeadOPTxt="公司信息列表" HeadTitleTxt="公司信息">
        <BingZiControls:HeadMenuButtonItem ButtonPopedom="New" ButtonUrl="Manager.aspx?CMD=New"
            ButtonUrlType="Href" ButtonVisible="True" ButtonName="公司信息" />
    </BingZiControls:HeadMenuWebControls>
    <BingZiControls:TabOptionWebControls ID="TabOptionWebControls1" runat="server">
        <BingZiControls:TabOptionItem ID="TabOptionItem1" runat="server" Tab_Name="公司信息列表">
            <asp:GridView ID="GridView1" runat="server" OnSorting="GridView1_Sorting" OnRowCreated="GridView1_RowCreated" >
                <Columns>
                    <asp:TemplateField SortExpression="ValueID" HeaderText="序号"> 
                        <ItemTemplate>
                        <a href="Manager.aspx?IDX=<%#Eval("ValueID")%>&CMD=List"><%# (this.AspNetPager1.CurrentPageIndex - 1) * this.AspNetPager1.PageSize + Container.DataItemIndex + 1%></a>
                        </ItemTemplate>
                        <ItemStyle Wrap="True" />  
                        <HeaderStyle Wrap="False" />    
                    </asp:TemplateField>
                    <asp:BoundField HeaderText="用户" SortExpression="UserID" DataField="UserID" />
                    <asp:BoundField HeaderText="用户名" SortExpression="UserName" DataField="UserName" />
                    <asp:BoundField HeaderText="公司名称" SortExpression="c_Name" DataField="c_Name" />
                    <asp:BoundField HeaderText="所属区域" SortExpression="c_Area" DataField="c_Area" />
                    <asp:BoundField HeaderText="公司类型" SortExpression="c_Type" DataField="c_Type" />
                    <asp:BoundField HeaderText="所属分类" SortExpression="c_Category" DataField="c_Category" />
                    <asp:BoundField HeaderText="主营品牌" SortExpression="c_Brand" DataField="c_Brand" />
                    <asp:BoundField HeaderText="主营产品" SortExpression="c_MainProducts" DataField="c_MainProducts" />
                    <asp:BoundField HeaderText="营业执照编号" SortExpression="c_BusinessLicence" DataField="c_BusinessLicence" />
                    <asp:BoundField HeaderText="营业执照" SortExpression="c_BusinessLicenceSrc" DataField="c_BusinessLicenceSrc" />
                    <asp:BoundField HeaderText="办公地址" SortExpression="c_Address" DataField="c_Address" />
                    <asp:BoundField HeaderText="公司标志" SortExpression="c_Logo" DataField="c_Logo" />
                    <asp:BoundField HeaderText="公司相片" SortExpression="c_Photo" DataField="c_Photo" />
                    <asp:BoundField HeaderText="公司介绍" SortExpression="c_Introduce" DataField="c_Introduce" />
                    <asp:BoundField HeaderText="公司主页" SortExpression="c_HomePage" DataField="c_HomePage" />
                    <asp:BoundField HeaderText="SEO关键字" SortExpression="c_SeoKeyWord" DataField="c_SeoKeyWord" />
                    <asp:BoundField HeaderText="SEO描述" SortExpression="c_SeoDescription" DataField="c_SeoDescription" />
                    <asp:BoundField HeaderText="最后操作用户" SortExpression="c_LastUserID" DataField="c_LastUserID" />
                    <asp:BoundField HeaderText="最后操作时间" SortExpression="c_LastTime" DataField="c_LastTime" />
                    <asp:BoundField HeaderText="最后操作IP" SortExpression="c_LastIP" DataField="c_LastIP" />
                    <asp:BoundField HeaderText="状态(0:待审核,1:已审核,2:已锁定)" SortExpression="c_State" DataField="c_State" />
                    <asp:BoundField HeaderText="邮箱" SortExpression="U_Email" DataField="U_Email" />
                    <asp:BoundField HeaderText="MSN" SortExpression="U_MSN" DataField="U_MSN" />
                    <asp:BoundField HeaderText="QQ" SortExpression="U_QQ" DataField="U_QQ" />
                    <asp:BoundField HeaderText="移动电话" SortExpression="U_MobilePhone" DataField="U_MobilePhone" />
                    <asp:BoundField HeaderText="电话" SortExpression="U_Phone" DataField="U_Phone" />
                    <asp:BoundField HeaderText="传真" SortExpression="U_Fax" DataField="U_Fax" />
                    <asp:BoundField HeaderText="职位" SortExpression="U_Position" DataField="U_Position" />
                </Columns>
            </asp:GridView>
            <BingZiControls:AspNetPager ID="AspNetPager1" runat="server" OnPageChanged="AspNetPager1_PageChanged">
            </BingZiControls:AspNetPager>
            <asp:Button ID="Button2" Visible="false" CssClass="button_bak" runat="server" Text="删除" OnClientClick="return deleteop();" OnClick="Button2_Click" />
        </BingZiControls:TabOptionItem>
        <BingZiControls:TabOptionItem ID="TabOptionItem2" runat="server" Tab_Name="查询">
            <table width="100%" border="0" cellspacing="1" cellpadding="3" align="center">
                <tr>
                    <td class="table_body">
                        用户</td>
                    <td class="table_none">
                     
                        <asp:TextBox ID="UserID_Input" title="请输入用户~2147483648:int" runat="server" CssClass="text_input"></asp:TextBox>
                    
                        </td>
                </tr>
                <tr>
                    <td class="table_body">
                        用户名</td>
                    <td class="table_none">
                     
                        <asp:TextBox ID="UserName_Input" title="请输入用户名~50:" runat="server" CssClass="text_input"></asp:TextBox>
                    
                        </td>
                </tr>
                <tr>
                    <td class="table_body">
                        公司名称</td>
                    <td class="table_none">
                     
                        <asp:TextBox ID="c_Name_Input" title="请输入公司名称~100:" runat="server" CssClass="text_input"></asp:TextBox>
                    
                        </td>
                </tr>
                <tr>
                    <td class="table_body">
                        所属区域</td>
                    <td class="table_none">
                     
                        <asp:TextBox ID="c_Area_Input" title="请输入所属区域~2147483648:int" runat="server" CssClass="text_input"></asp:TextBox>
                    
                        </td>
                </tr>
                <tr>
                    <td class="table_body">
                        公司类型</td>
                    <td class="table_none">
                     
                        <asp:TextBox ID="c_Type_Input" title="请输入公司类型~255:int" runat="server" CssClass="text_input"></asp:TextBox>
                    
                        </td>
                </tr>
                <tr>
                    <td class="table_body">
                        所属分类</td>
                    <td class="table_none">
                     
                        <asp:TextBox ID="c_Category_Input" title="请输入所属分类~2147483648:int" runat="server" CssClass="text_input"></asp:TextBox>
                    
                        </td>
                </tr>
                <tr>
                    <td class="table_body">
                        主营品牌</td>
                    <td class="table_none">
                     
                        <asp:TextBox ID="c_Brand_Input" title="请输入主营品牌~100:" runat="server" CssClass="text_input"></asp:TextBox>
                    
                        </td>
                </tr>
                <tr>
                    <td class="table_body">
                        主营产品</td>
                    <td class="table_none">
                     
                        <asp:TextBox ID="c_MainProducts_Input" title="请输入主营产品~200:" runat="server" CssClass="text_input"></asp:TextBox>
                    
                        </td>
                </tr>
                <tr>
                    <td class="table_body">
                        营业执照编号</td>
                    <td class="table_none">
                     
                        <asp:TextBox ID="c_BusinessLicence_Input" title="请输入营业执照编号~50:" runat="server" CssClass="text_input"></asp:TextBox>
                    
                        </td>
                </tr>
                <tr>
                    <td class="table_body">
                        营业执照</td>
                    <td class="table_none">
                     
                        <asp:TextBox ID="c_BusinessLicenceSrc_Input" title="请输入营业执照~150:" runat="server" CssClass="text_input"></asp:TextBox>
                    
                        </td>
                </tr>
                <tr>
                    <td class="table_body">
                        办公地址</td>
                    <td class="table_none">
                     
                        <asp:TextBox ID="c_Address_Input" title="请输入办公地址~200:" runat="server" CssClass="text_input"></asp:TextBox>
                    
                        </td>
                </tr>
                <tr>
                    <td class="table_body">
                        公司标志</td>
                    <td class="table_none">
                     
                        <asp:TextBox ID="c_Logo_Input" title="请输入公司标志~150:" runat="server" CssClass="text_input"></asp:TextBox>
                    
                        </td>
                </tr>
                <tr>
                    <td class="table_body">
                        公司相片</td>
                    <td class="table_none">
                     
                        <asp:TextBox ID="c_Photo_Input" title="请输入公司相片~150:" runat="server" CssClass="text_input"></asp:TextBox>
                    
                        </td>
                </tr>
                <tr>
                    <td class="table_body">
                        公司介绍</td>
                    <td class="table_none">
                     
                        <asp:TextBox ID="c_Introduce_Input" title="请输入公司介绍~512:" runat="server" CssClass="text_input"></asp:TextBox>
                    
                        </td>
                </tr>
                <tr>
                    <td class="table_body">
                        公司主页</td>
                    <td class="table_none">
                     
                        <asp:TextBox ID="c_HomePage_Input" title="请输入公司主页~150:" runat="server" CssClass="text_input"></asp:TextBox>
                    
                        </td>
                </tr>
                <tr>
                    <td class="table_body">
                        SEO关键字</td>
                    <td class="table_none">
                     
                        <asp:TextBox ID="c_SeoKeyWord_Input" title="请输入SEO关键字~100:" runat="server" CssClass="text_input"></asp:TextBox>
                    
                        </td>
                </tr>
                <tr>
                    <td class="table_body">
                        SEO描述</td>
                    <td class="table_none">
                     
                        <asp:TextBox ID="c_SeoDescription_Input" title="请输入SEO描述~200:" runat="server" CssClass="text_input"></asp:TextBox>
                    
                        </td>
                </tr>
                <tr>
                    <td class="table_body">
                        最后操作用户</td>
                    <td class="table_none">
                     
                        <asp:TextBox ID="c_LastUserID_Input" title="请输入最后操作用户~2147483648:int" runat="server" CssClass="text_input"></asp:TextBox>
                    
                        </td>
                </tr>
                <tr>
                    <td class="table_body">
                        最后操作时间</td>
                    <td class="table_none">
                     
                        <asp:TextBox ID="c_LastTime_Input" title="请输入最后操作时间~datetime" runat="server" CssClass="text_input"></asp:TextBox>
                    
                        </td>
                </tr>
                <tr>
                    <td class="table_body">
                        最后操作IP</td>
                    <td class="table_none">
                     
                        <asp:TextBox ID="c_LastIP_Input" title="请输入最后操作IP~15:" runat="server" CssClass="text_input"></asp:TextBox>
                    
                        </td>
                </tr>
                <tr>
                    <td class="table_body">
                        状态(0:待审核,1:已审核,2:已锁定)</td>
                    <td class="table_none">
                     
                        <asp:TextBox ID="c_State_Input" title="请输入状态(0:待审核,1:已审核,2:已锁定)~255:int" runat="server" CssClass="text_input"></asp:TextBox>
                    
                        </td>
                </tr>
                <tr>
                    <td class="table_body">
                        邮箱</td>
                    <td class="table_none">
                     
                        <asp:TextBox ID="U_Email_Input" title="请输入邮箱~50:" runat="server" CssClass="text_input"></asp:TextBox>
                    
                        </td>
                </tr>
                <tr>
                    <td class="table_body">
                        MSN</td>
                    <td class="table_none">
                     
                        <asp:TextBox ID="U_MSN_Input" title="请输入MSN~50:" runat="server" CssClass="text_input"></asp:TextBox>
                    
                        </td>
                </tr>
                <tr>
                    <td class="table_body">
                        QQ</td>
                    <td class="table_none">
                     
                        <asp:TextBox ID="U_QQ_Input" title="请输入QQ~2147483648:int" runat="server" CssClass="text_input"></asp:TextBox>
                    
                        </td>
                </tr>
                <tr>
                    <td class="table_body">
                        移动电话</td>
                    <td class="table_none">
                     
                        <asp:TextBox ID="U_MobilePhone_Input" title="请输入移动电话~20:" runat="server" CssClass="text_input"></asp:TextBox>
                    
                        </td>
                </tr>
                <tr>
                    <td class="table_body">
                        电话</td>
                    <td class="table_none">
                     
                        <asp:TextBox ID="U_Phone_Input" title="请输入电话~20:" runat="server" CssClass="text_input"></asp:TextBox>
                    
                        </td>
                </tr>
                <tr>
                    <td class="table_body">
                        传真</td>
                    <td class="table_none">
                     
                        <asp:TextBox ID="U_Fax_Input" title="请输入传真~20:" runat="server" CssClass="text_input"></asp:TextBox>
                    
                        </td>
                </tr>
                <tr>
                    <td class="table_body">
                        职位</td>
                    <td class="table_none">
                     
                        <asp:TextBox ID="U_Position_Input" title="请输入职位~20:" runat="server" CssClass="text_input"></asp:TextBox>
                    
                        </td>
                </tr>
                <tr>
                    <td colspan="4" align="right">
                        <asp:Button ID="Button1" runat="server" CssClass="button_bak" Text="查询" OnClick="Button1_Click" /></td>
                </tr>
            </table>
        </BingZiControls:TabOptionItem>
    </BingZiControls:TabOptionWebControls>

<script language="javascript" type="text/javascript">
<!--

function SelectAll()
{
   var e=document.getElementsByTagName("input");
   var IsTrue;
   if(document.getElementById("CheckboxAll").value=="0")
　 {
　　 IsTrue=true;
　　 document.getElementById("CheckboxAll").value="1"
　 }
　 else
　 {
　　IsTrue=false;
　　document.getElementById("CheckboxAll").value="0"
　　}
　　
　for(var i=0;i<e.length;i++)
　{
　　if (e[i].type=="checkbox")
　　{
　　   e[i].checked=IsTrue;
　　}
　}
}
function deleteop()
{
    var checkok = false;
    var e=document.getElementsByTagName("input");
    for(var i=0;i<e.length;i++)
　  {
　     if (e[i].type=="checkbox")
　　     {
　　         if (e[i].checked==true)
　　         {
　　             checkok = true;
　　             break;　　             
　　         }
　　     }  
　  }
　  if (checkok) 
        return confirm('删除后不可恢复,确认要批量删除选中记录吗？');
    else
    {
        
        alert("请选择要删除的记录!");
        return false;
    }
}
// -->
    </script>

</asp:Content>
